package com.flurry.android;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.text.TextUtils;
import android.util.Log;

final class et
{
  private static Context mContext = null;

  static void A(String paramString)
  {
    try
    {
      Context localContext = mContext;
      if (localContext == null);
      while (true)
      {
        return;
        SharedPreferences.Editor localEditor = mContext.getSharedPreferences("FLURRY_SHARED_PREFERENCES", 0).edit();
        localEditor.putString("flurry_last_user_pass", paramString);
        localEditor.commit();
      }
    }
    finally
    {
    }
  }

  static void aX()
  {
    try
    {
      Context localContext = mContext;
      if (localContext == null);
      while (true)
      {
        return;
        SharedPreferences.Editor localEditor = mContext.getSharedPreferences("FLURRY_SHARED_PREFERENCES", 0).edit();
        localEditor.putString("flurry_last_user_session", "");
        localEditor.commit();
      }
    }
    finally
    {
    }
  }

  static AppCloudUser aY()
  {
    try
    {
      Context localContext = mContext;
      Object localObject2 = null;
      if (localContext == null);
      while (true)
      {
        return localObject2;
        AppCloudUser localAppCloudUser = new AppCloudUser();
        String str1 = aZ();
        boolean bool = TextUtils.isEmpty(str1);
        localObject2 = null;
        if (!bool)
        {
          localAppCloudUser.setId(str1);
          String str2 = ba();
          if (!TextUtils.isEmpty(str2))
            localAppCloudUser.setUsername(str2);
          String str3 = bb();
          if (!TextUtils.isEmpty(str3))
            localAppCloudUser.setEmail(str3);
          localAppCloudUser.password = bc();
          localObject2 = localAppCloudUser;
        }
      }
    }
    finally
    {
    }
  }

  static String aZ()
  {
    try
    {
      if (mContext == null);
      String str;
      for (Object localObject2 = ""; ; localObject2 = str)
      {
        return localObject2;
        str = mContext.getSharedPreferences("FLURRY_SHARED_PREFERENCES", 0).getString("flurry_last_user_id", "");
      }
    }
    finally
    {
    }
  }

  static String ba()
  {
    try
    {
      if (mContext == null);
      String str;
      for (Object localObject2 = ""; ; localObject2 = str)
      {
        return localObject2;
        str = mContext.getSharedPreferences("FLURRY_SHARED_PREFERENCES", 0).getString("flurry_last_user_name", "");
      }
    }
    finally
    {
    }
  }

  static String bb()
  {
    try
    {
      if (mContext == null);
      String str;
      for (Object localObject2 = ""; ; localObject2 = str)
      {
        return localObject2;
        str = mContext.getSharedPreferences("FLURRY_SHARED_PREFERENCES", 0).getString("flurry_last_user_email", "");
      }
    }
    finally
    {
    }
  }

  static String bc()
  {
    try
    {
      if (mContext == null);
      String str;
      for (Object localObject2 = ""; ; localObject2 = str)
      {
        return localObject2;
        str = mContext.getSharedPreferences("FLURRY_SHARED_PREFERENCES", 0).getString("flurry_last_user_pass", "");
      }
    }
    finally
    {
    }
  }

  static String bd()
  {
    try
    {
      String str;
      if (mContext == null)
        str = "";
      while (true)
      {
        return str;
        str = mContext.getSharedPreferences("FLURRY_SHARED_PREFERENCES", 0).getString("flurry_last_user_session", "");
        Log.i("AppCloudUserHelper", "User Session = " + str);
      }
    }
    finally
    {
    }
  }

  static void be()
  {
    try
    {
      Context localContext = mContext;
      if (localContext == null);
      while (true)
      {
        return;
        mContext.getSharedPreferences("FLURRY_SHARED_PREFERENCES", 0).edit().clear().commit();
      }
    }
    finally
    {
    }
  }

  static void d(String paramString1, String paramString2, String paramString3)
  {
    try
    {
      Context localContext = mContext;
      if (localContext == null);
      while (true)
      {
        return;
        SharedPreferences.Editor localEditor = mContext.getSharedPreferences("FLURRY_SHARED_PREFERENCES", 0).edit();
        if (!TextUtils.isEmpty(paramString1))
          localEditor.putString("flurry_last_user_name", paramString1);
        if (!TextUtils.isEmpty(paramString1))
          localEditor.putString("flurry_last_user_email", paramString2);
        if (!TextUtils.isEmpty(paramString3))
          localEditor.putString("flurry_last_user_session", paramString3);
        localEditor.commit();
        Log.i("AppCloudUserHelper", "saveLastLoggedInUserData, (Name, Email, Token) = ( " + paramString1 + " , " + paramString2 + " , " + paramString3 + " )");
      }
    }
    finally
    {
    }
  }

  static void g(Context paramContext)
  {
    mContext = paramContext;
  }

  static void z(String paramString)
  {
    try
    {
      Context localContext = mContext;
      if (localContext == null);
      while (true)
      {
        return;
        SharedPreferences.Editor localEditor = mContext.getSharedPreferences("FLURRY_SHARED_PREFERENCES", 0).edit();
        localEditor.putString("flurry_last_user_id", paramString);
        localEditor.commit();
        if (!TextUtils.isEmpty(paramString))
          FlurryAppCloud.d(mContext, paramString);
      }
    }
    finally
    {
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.flurry.android.et
 * JD-Core Version:    0.6.2
 */